package cn.demoncat.util.mysql.entity;

/**
 * Mysql线程 - SHOW PROCESSLIST
 *
 * @author 延晓磊
 * @since 2020年10月09日
 */
public class MysqlProcess {

    // 进程ID
    private String id;
    // 用户
    private String user;
    // HOST
    private String host;
    // DB
    private String db;
    // 命令：Daemon 守护线程，Query 执行语句，Execute 执行Statement，Sleep 等待指令
    private String command;
    // 命令执行秒数
    private String time;
    // 命令状态
    private String state;
    // 命令详情
    private String info;

    public MysqlProcess(String id, String user, String host, String db, String command, String time, String state, String info) {
        this.id = id;
        this.user = user;
        this.host = host;
        this.db = db;
        this.command = command;
        this.state = state;
        this.info = info;
        this.time = time;
    }

    public MysqlProcess() {
        super();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getDb() {
        return db;
    }

    public void setDb(String db) {
        this.db = db;
    }

    public String getCommand() {
        return command;
    }

    public void setCommand(String command) {
        this.command = command;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }
}
